package com.lsu.app.service;

import com.lsu.app.bean.Resource;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description 针对表【resource(图片/视频文件)】的数据库操作Service
 * @Date 2023-10-20 18:13:30
 * @author hjj
 */

public interface ResourceService extends IService<Resource> {
    String getCourseNameByVideoId(Integer id);
    List<Integer> getReIdsByTypeAndUorrId( Integer type, Integer id);
    Resource getResourceByUsername(String username);
    String getHeadUrlByUorrIdAndType(Integer userId);
    String getVideoUrlByUorrIdAndId(Integer uorrId,Integer id);
    Integer getUorrIdById(Integer id);
    List<Integer> getIdsByCourseId(Integer courseId);
    Integer getEpisodesByUorrId(Integer id);
    String getCoverImgUrlByCourseId(Integer id);

    void adjustEpisodes(Integer episodes);
    String[] getTalkImgsUrlByTalkId(Integer talkId);
    String getTeacherNameByVideoId(Integer uorrId);
    Integer getCountOfRemake(String remake,Integer courseId);
    String getUploadImg(Integer uorrId);
    String getCourseCoverUrlByVideoId(Integer id);
    Integer getTeacherIdByVideoId(Integer id);
}
